<?php $this->set('title', 'Audience Lists'); ?>
<?php $this->set('external_css', array('surveys.css')); ?>
<?php $session->flash();?>
<div class="header">Audience Lists</div>
<br />

<?php echo $html->link(($html->image("icons/add.png")." Add New Audience List"),
 			array('controller' => 'audiencelists', 'action' => 'add'),
			array('escape' => false)); ?>

<table style="" cellpadding="5" cellspacing="0" border="0">
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>Name</td>
	</tr>
	<?php foreach ($audiencelists as $audiencelist): ?>
		<tr>
			<td>
		  	<?php echo $html->link($html->image("icons/zoom.png"),
			  array('controller' => 'audiencelists', 'action' => 'view', 'id' => $audiencelist['Audiencelist']['id']),
			  array('escape' => false)); ?>&nbsp;
			</td>
			<td>
		  	<?php echo $html->link($html->image("icons/remove.png"),
			  array('controller' => 'audiencelists', 'action' => 'delete', 'id' => $audiencelist['Audiencelist']['id']), null,
			  "Are you sure you want to delete the Audience List ".$audiencelist['Audiencelist']['name'],
			  array('escape' => false)); ?>&nbsp;				
			</td>
				
			<td><?php echo $audiencelist['Audiencelist']['name']; ?></td>
		</tr>
	<?php endforeach; ?>
</table>
<br /><br />
